//
//  NSNull+NSNullAsNil.m
//  GDTaoJin
//
//  Created by zhaoke.hzk on 15/7/4.
//  Copyright (c) 2015年 huzhaoke. All rights reserved.
//

#import "NSNull+NSNullAsNil.h"
#import <objc/runtime.h>

static int zero(id self, SEL cmd) {
    return 0;
}

@implementation NSNull (NSNullAsNil)

+ (BOOL)resolveInstanceMethod:(SEL)sel
{
    class_addMethod([self class], sel, (IMP)zero, "v@:");
    return YES;
}

@end
